<%@ page contentType="text/html; charset=utf-8" %>
<%
	request.setAttribute("path", request.getContextPath());
%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8" />
	<title>致-青春 登录</title>
	<link rel="stylesheet" type="text/css" href="${path}/css/base.css" />
	<script type="text/javascript" src="${path}/js/jquery-1.10.2.min.js"></script>
	<script type="text/javascript" src="${path}/js/jquery.zhi-qingchun-0.1.js"></script>
	<script type="text/javascript">
		function check() {
			$("input").each(function(){
				$(this).wipe();
			});
			
			var email = $("input[name='email']");
			if (email.val() == "") {
				email.er("帐号不能为空");
				return false;
			} 
			
			var pwd = $("input[name='pwd']");
			if (pwd.val() == "") {
				pwd.er("密码不能为空");
				return false;
			} 
			
			return true;
		}
	</script>
</head>
<body>
	<div id="container">
		<jsp:include page="/page/common/header.jsp"></jsp:include>
		<div id="kernel" class="center-box">
			<h1>登录致-青春</h1>
			<form action="login.html" method="post" onsubmit="return check();">
				<table>
					<tr>
						<th><label>帐号</label></th>
						<td><input name="email" /></td>
					</tr>
					<tr>
						<th><label>密码</label></th>
						<td><input name="pwd" type="password" /></td>
					</tr>
					<tr style="display: none;">
						<th></th>
						<td style="font-size: 12px;">
							<input type="checkbox" id="remember" name="remember">
				            <label for="remember" style="width: 75px;">下次自动登录</label>
				            | <a href="${path }/accounts/resetpassword">忘记密码了</a>
						</td>
					</tr>
					<tr>
						<th></th>
						<td><input type="submit" value="登录" /></td>
					</tr>
				</table>
			</form>
		</div>
		<jsp:include page="/page/common/footer.jsp"></jsp:include>
	</div>
</body>
</html>